package com.leve.admin.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@ApiModel("此刻关联空间")
@Data
public class PostZone {
    @ApiModelProperty(value = "空间标识", required = true)
    @NotBlank
    @Size(max = 64)
    private String id;

    @ApiModelProperty(position = 1, value = "空间名称", required = true, allowableValues = "range[1,64]")
    @NotBlank
    @Size(min = 1, max = 64)
    private String name;

    @ApiModelProperty(position = 2, value = "照片", readOnly = true)
    private String photo;
}
